package imgshare.common.event;

import org.springframework.context.ApplicationEvent;

public class FollowCreatedEvent extends ApplicationEvent {

    private final Integer subjectId;
    private final Integer objectId;

    public Integer getSubjectId() {
        return subjectId;
    }

    public Integer getObjectId() {
        return objectId;
    }

    public FollowCreatedEvent(Object source, Integer subjectId, Integer objectId) {
        super(source);
        this.subjectId = subjectId;
        this.objectId = objectId;
    }
}
